<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Template {
		var $template_data = array();
		
		function set($name, $value){
			$this->template_data[$name] = $value;
		}

		function load($template = '', $view = '' , $view_data = array(), $return = FALSE){               
			$this->CI = &get_instance();
			$this->set('contents', $this->CI->load->view($view, $view_data, TRUE));	
			$nav_list = array();
			$nav_list[]=array('','首頁');
			$nav_list[]=array('Photos','照片');
			$nav_list[]=array('About','關於我');
			$nav_list[]=array('Contact','聯絡');
			$nav_list[]=array('member/logout/'.urlencode(urlencode('auth/login')),'登出');
			$nav_list[]=array('member/logout/','登出2');
			$nav_list[]=array('member/logout/112','登出3');
			$this->set('nav_list', $nav_list);
			//$this->set('nav_list', array(array('','首頁'), array('Photos','照片'), array('About','關於我'), array('Contact','聯絡'), array('member/logout/'.urlencode('auth/login'),'登出'))); //導航列
			return $this->CI->load->view($template, $this->template_data, $return);
		}
}

/* End of file Template.php */
/* Location: ./system/application/libraries/Template.php */